import requests

res = requests.get("http://www.baidu.com")
print(res.request.headers)


res2 = requests.get("http://www.baidu.com")
print(res2.request.headers)


res3 = requests.get("http://www.baidu.com")
print(res3.request.headers)

print("======================")

# 登录态分组
session_s = requests.session()
res4 = session_s.post("http://10.10.210.21:32001/api/oauthLogin",data={"loginCode":"test_code_1"})
print(res4.request.headers)


res5 = session_s.post("http://10.10.210.21:32001/api/department/getChannelAndTeam",headers = {"Content-Type":"application/json"})
print(res5.request.headers)
# print(res5.text)


# session_s2 = requests.session()
# res6 = session_s2.get("http://www.baidu.com")
# print(res4.request.headers)


# res7= session_s2.get("http://www.baidu.com")
# print(res7.request.headers)

